//
//  GQHFreightModel.h
//  Xanthium
//
//  Created by GuanQinghao on 23/03/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import "GQHBaseModel.h"


@interface GQHFreightModel : GQHBaseModel

/// 货源ID
@property (nonatomic, copy) NSString *qh_freightID;
/// 起始地行政编码
@property (nonatomic, copy) NSString *qh_departureID;
/// 起始地经度
@property (nonatomic, copy) NSString *qh_departureLatitude;
/// 起始地纬度
@property (nonatomic, copy) NSString *qh_departureLongitude;
/// 起始地
@property (nonatomic, copy) NSString *qh_departure;
/// 目的地行政编码
@property (nonatomic, copy) NSString *qh_destinationID;
/// 目的地经度
@property (nonatomic, copy) NSString *qh_destinationLatitude;
/// 目的地纬度
@property (nonatomic, copy) NSString *qh_destinationLongitude;
/// 目的地
@property (nonatomic, copy) NSString *qh_destination;
/// 公里数
@property (nonatomic, copy) NSString *qh_mileage;

/// 货物名称
@property (nonatomic, copy) NSString *qh_freightName;
/// 货物类型
@property (nonatomic, copy) NSString *qh_freightType;
/// 货物类型编码
@property (nonatomic, copy) NSString *qh_freightTypeCode;
/// 货源需求车型
@property (nonatomic, copy) NSString *qh_modelWanted;
/// 货源需求车长
@property (nonatomic, copy) NSString *qh_lengthWanted;
/// 备注
@property (nonatomic, copy) NSString *qh_note;

/// 货物重量
@property (nonatomic, assign) CGFloat qh_freightWeight;
/// 货物体积
@property (nonatomic, assign) CGFloat qh_freightVolume;
/// 货物数量
@property (nonatomic, assign) CGFloat qh_freightNumber;
/// 货物单价
@property (nonatomic, assign) CGFloat qh_freightUnitPrice;
/// 剩余货物重量
@property (nonatomic, assign) CGFloat qh_freightWeightRemained;

/// 装货人
@property (nonatomic, copy) NSString *qh_loader;
/// 装货人电话
@property (nonatomic, copy) NSString *qh_loaderMobile;
/// 装车时间
@property (nonatomic, copy) NSString *qh_loadingTime;

/// 发布人ID
@property (nonatomic, copy) NSString *qh_posterID;
/// 企业名称
@property (nonatomic, copy) NSString *qh_enterpriseName;
/// 发布人头像(货主)
@property (nonatomic, copy) NSString *qh_posterAvatar;
/// 发布人姓名
@property (nonatomic, copy) NSString *qh_posterName;
/// 发布人类型
@property (nonatomic, copy) NSString *qh_posterType;
/// 发布人类型
@property (nonatomic, copy) NSString *qh_posterTypeCode;
/// 发布人电话
@property (nonatomic, copy) NSString *qh_posterMobile;
/// 货主评分
@property (nonatomic, assign) CGFloat qh_posterScore;
/// 发布时间
@property (nonatomic, copy) NSString *qh_postTime;
/// 上架状态
@property (nonatomic, copy) NSString *qh_state;

/// 熟人 (关注货主)
@property (nonatomic, assign) BOOL qh_followed;
/// 报价数目
@property (nonatomic, assign) int qh_quotationCount;
/// 协议数目
@property (nonatomic, assign) int qh_agreementCount;
/// 是否推送
@property (nonatomic, copy) NSString *qh_pushOrNot;
/// 是否报价
@property (nonatomic, copy) NSString *qh_offerStatus;



/**
 "origin": "长治市 襄垣县",
 "destination": "本溪市 本溪满族自治县",
 "demandModels": "平板挂车",
 "demandVehicleLength": "5.2米",
 "loadingTime": "2018-05-19 14:53:21",
 "pushOrNo": "02",
 "commodityName": "asdasdas",
 "sourceId": "40284774636bffe801636ce009560077"
 */





/**
 "id": "4028b881627b535d01627b6e36990011",
 
 "origin": "石家庄市 高邑县",
 "destination": "邯郸市 鸡泽县",
 "mileage": null,
 
 "commodityName": "玉米",
 "goodsType": "电子产品",
 "demandModels": "仓栅式货车",
 "demandVehicleLength": "17米",
 "note": "哈哈哈哈哈",
 
 "demandVehicle": 1000,
 "goodsVolume": 1200,
 "goodsNum": 120,
 "freightUnitPrice": 1000,
 "remainVehicle": 1000,
 
 "loader": null,
 "loaderPhone": null,
 "loadingTime": "2018-03-31 12:38:22",
 
 "releasePeople": "4028b881627b535d01627b64a635000e",
 "comName": "哈哈"
 "headImg": null,
 "releasePeopleName": "物流企业",
 "releasePeopleType": "物流企业",
 "releasePeoplePhone": "18792684153",
 "score": null,
 "releaseTime": "2018-03-31 17:40:43",
 "releaseState": "发布中",
 
 "friend": false,
 
 "quotationNum": 0,
 "agreementNum": 0,
 */

///  获取货源列表
+ (void)qh_fetchFreightsWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, NSArray<GQHFreightModel *> *freights))success failure:(void(^)(NSError *error))failure;

@end
